﻿<%@ WebHandler Language="C#" Class="SetUp" %>

using System;
using System.Web;

public class SetUp : IHttpHandler {
    
    public void ProcessRequest (HttpContext context) {
        context.Response.ContentType = "text/html";
        for (int i = 1; i < 21; i++)
        {
            System.Threading.Thread.Sleep(500);  //用thread.sleep来模拟安装过程
            context.Response.Write("第"+i+"个程序安装完毕<br/>");
            context.Response.Flush();
        }
    }
 
    public bool IsReusable {
        get {
            return false;
        }
    }

}